package com.mooc.yohoshop.widget;

import android.content.Context;
import android.graphics.Color;

import androidx.annotation.Nullable;

import com.mooc.yohoshop.R;
import com.yanyusong.y_divideritemdecoration.Y_Divider;
import com.yanyusong.y_divideritemdecoration.Y_DividerBuilder;
import com.yanyusong.y_divideritemdecoration.Y_DividerItemDecoration;

public class SecKillDivider extends Y_DividerItemDecoration {
    public SecKillDivider(Context context) {
        super(context);
    }

    @Nullable
    @Override
    public Y_Divider getDivider(int itemPosition) {
        return  new Y_DividerBuilder()
                .setBottomSideLine(true, Color.parseColor("#1c1c1c"),
                        1, 0, 0).create();
    }
}
